﻿/// <reference path="../lib/backbone.js" />
/// <reference path="../lib/underscore.js" />
/// <reference path="../lib/backbone.localStorage.js" />
/// <reference path="../lib/jquery.js" />

var app = app || {};

app.Todo = Backbone.Model.extend({
    defaults: {
        title: '',
        completed: false
    },
    toggle: function () {
        this.save({ completed: !this.get('completed') });
    }
});